package com.o2opuzi.pub.model;

import java.util.Date;

import com.o2opuzi.lib.db.Model;
import com.o2opuzi.lib.db.Tb;

/**
 * 用户登录记录
 * @author Y.hj
 * @date 2016年5月31日
 */
@Tb(name="user_login_log")
public class UserLoginLog extends Model<UserLoginLog, Integer>{

	private static final long serialVersionUID = -6221573161103921592L;
	
	public static final String LOGIN_TYPE_PASSWORD = "PASSWORD";
	
	public static final String LOGIN_TYPE_WX_AUTH = "WX_AUTH";
	
	public static final String LOGIN_TYPE_AUTO = "AUTO";
	
	/**
	 * 主键id
	 */
	private Integer id;
	
	/**
	 * 用户id
	 */
	private Integer user_id;
	
	/**
	 * 登陆类型 PASSWORD | WX_AUTH
	 */
	private String login_type;
	
	/**
	 * 登录的终端
	 */
	private String login_client;
	
	/**
	 * 登录的IP地址
	 */
	private String login_ip;
	
	/**
	 * 登录的时间
	 */
	private Date login_date;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUser_id() {
		return user_id;
	}

	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}

	public String getLogin_client() {
		return login_client;
	}

	public void setLogin_client(String login_client) {
		this.login_client = login_client;
	}

	public String getLogin_ip() {
		return login_ip;
	}

	public void setLogin_ip(String login_ip) {
		this.login_ip = login_ip;
	}

	public Date getLogin_date() {
		return login_date;
	}

	public void setLogin_date(Date login_date) {
		this.login_date = login_date;
	}

	public String getLogin_type() {
		return login_type;
	}

	public void setLogin_type(String login_type) {
		this.login_type = login_type;
	}

}
